// 安全的创建缓冲区
let buffer1 = Buffer.alloc(10)
console.log(buffer1); // <Buffer 00 00 00 00 00 00 00 00 00 00>

// 不安全的创建缓冲区
let buffer2 = Buffer.allocUnsafe(10)
console.log(buffer2); // <Buffer 00 00 00 00 00 00 00 00 00 00>

// ASCII码创建缓冲区
let buffer3 = Buffer.from('hello')
console.log(buffer3); // <Buffer 68 65 6c 6c 6f>

